import request from '@/utils/request'


export const test = ()=>{
  return request({
    url:`/test`,
    method:'post'
  })
}

export const queryProjectList = ()=>{
  return request({
    url:`/deliver/project/list`,
    method:'post'
  })
}
export const saveProject = (data: any)=>{
  return request({
    url:`/deliver/project/save`,
    data,
    method:'post'
  })
}
export const saveReleasePlan = (data: any)=>{
  return request({
    url:`/deliver/project/saveReleasePlan`,
    data,
    method:'post'
  })
}
export const saveApp = (data: any)=>{
  return request({
    url:`/deliver/project/saveApp`,
    data,
    method:'post'
  })
}
export const queryPublishPlanList = ()=>{
  return request({
    url:`/deliver/project/queryPublishPlanList`,
    method:'post'
  })
}
export const queryApps = ()=>{
  return request({
    url:`/deliver/project/queryApps`,
    method:'post'
  })
}
export const queryPublishPlanDetail = (data)=>{
  return request({
    url:`/deliver/project/queryPublishPlanDetail`,
    data,
    method:'post'
  })
}
export const addDeployTask = (data: { linkId: number; projectId: any; planId: any })=>{
  return request({
    url:`/deliver/project/addDeployTask`,
    data,
    method:'post'
  })
}

export const saveCertificate = (data: any)=>{
  return request({
    url:`/certificate/save`,
    method:'post',
    data
  })
}
export const publishPlanLinkApp = (data: any)=>{
  return request({
    url:`/deliver/project/publishPlanLinkApp`,
    method:'post',
    data
  })
}
export const queryProjectPipeline = (data: any)=>{
  return request({
    url:`/deliver/project/queryProjectPipeline`,
    method:'post',
    data
  })
}
export const queryDeployRecord = (data: any)=>{
  return request({
    url:`/deliver/project/queryDeployRecord`,
    method:'post',
    data
  })
}
